package cn.hh.hrm.client;


import cn.hh.hrm.doc.CourseDoc;
import cn.hh.hrm.query.CourseDocQuery;
import cn.hh.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "HRM-ES",fallbackFactory = CourseDocFallBackFactory.class)
@RequestMapping("/courseDoc")
public interface ICourseDocClient {
    @PostMapping("/onLine")
    AjaxResult onLineCourse(@RequestBody CourseDoc courseDoc);
    @PostMapping("/offLine")
    AjaxResult offLineCourse(@RequestBody CourseDoc doc);
    @PostMapping("/queryCourses")
    AjaxResult queryCourses(@RequestBody CourseDocQuery query);
}
